package cn.edu.ujn.park.service;

import cn.edu.ujn.park.dao.Payments;
import cn.edu.ujn.util.Page;

import java.math.BigDecimal;

public interface IPaymentsService {

    int deleteByPrimaryKey(Integer paymentId);

    int insert(Payments row);

    int insertSelective(Payments row);

    Payments selectByPrimaryKey(Integer paymentId);

    int updateByPrimaryKeySelective(Payments row);

    int updateByPrimaryKey(Payments row);

    Page<Payments> selectAll(Payments payments);

    Integer update();

    Integer delete(Integer paymentId);

    Integer pay(Integer paymentId, BigDecimal finalCost, Integer couponId);
}
